<script setup>
import { useStore } from 'vuex'
import { computed } from 'vue'
const store = useStore();
let count = computed(() => store.state.count);
console.log(store.state.count);
const add = () => {
  store.commit('increment', 10)
}
</script>

<template>
  <div>{{this.$store.state.count}}</div>
  <div>{{count}}</div>
  <div>
    <button @click="add">add</button>
  </div>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
